home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / internet-tools / amitcp / amitcp-sdk-4.3 / src / examples / rpc / sort / smakefile < prev    next >
Encoding:
Makefile  |  1994-09-30  |  1.2 KB  |  58 lines

  1. #
  2. #       $Id: Smakefile,v 4.1 1994/09/30 00:20:56 jraja Exp $
  3. #
  4. #       Smakefile for sort
  5. #
  6. #       Copyright © 1994 AmiTCP/IP Group, 
  7. #                        Network Solutions Development Inc.
  8. #                        All rights reserved.
  9. #
  10.  
  11. MAKE = smake
  12. RM= delete
  13. CC= sc
  14. RPCCOM= rpcgen
  15. LD= slink
  16.  
  17. #
  18. # Note that we have selected the register argument version of the rpc
  19. # library and the SCOPTIONS file has PARAMETERS option set to REGISTER.
  20. # Use the USE_DOSIO versions of the libraries.
  21. #
  22. LIBS= LIB NETLIB:rpcdr.lib NETLIB:netd.lib
  23.  
  24. CFLAGS= DEF=USE_DOSIO
  25.  
  26. BIN = rsort sort_svc
  27. GEN = sort_clnt.c sort_svc.c sort_xdr.c sort.h
  28.  
  29. all: $(BIN)
  30.  
  31. rsort: rsort.o sort_clnt.o sort_xdr.o
  32.     $(CC) LINK TO $@ OBJ rsort.o sort_clnt.o sort_xdr.o $(LIBS)
  33.  
  34. rsort.o: rsort.c sort.h
  35.  
  36. sort_clnt.o: sort_clnt.c
  37. sort_clnt.c:
  38.     $(RPCCOM) -l sort.x >$@
  39.  
  40. sort_svc: sort_proc.o sort_svc.o sort_xdr.o
  41.     $(CC) LINK TO $@ OBJ sort_proc.o sort_svc.o sort_xdr.o $(LIBS)
  42.  
  43. sort_proc.o: sort_proc.c sort.h
  44.  
  45. sort_svc.o: sort_svc.c
  46. sort_svc.c:
  47.     $(RPCCOM) -s udp sort.x >$@
  48.  
  49. sort_xdr.o: sort_xdr.c
  50. sort_xdr.c:
  51.     $(RPCCOM) -c sort.x >$@
  52.  
  53. sort.h:
  54.     $(RPCCOM) -h sort.x >$@
  55.  
  56. clean cleanup:
  57.     $(RM) $(GEN) \#?.(o|lnk|map) $(BIN) \#?!
  58.